package com.autumn.cloud.demo.consumer;

import com.alibaba.dubbo.config.spring.context.annotation.EnableDubbo;
import com.autumn.cloud.demo.common.annotation.EnableDemoCommon;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * <p>
 * </p>
 *
 * @description TODO
 * @author: 老码农
 * @create: 2020-12-11 03:39
 **/
@SpringBootApplication
@EnableDiscoveryClient
// 启用熔断
@EnableHystrix
@EnableFeignClients
@EnableDemoCommon
@EnableDubbo(scanBasePackages = {"com.autumn.cloud.demo.consumer.services"})
public class ZookeeperFeignConsumerStartup {

    public static void main(String[] args) {
        SpringApplication.run(ZookeeperFeignConsumerStartup.class, args);
    }
}
